package rursu.business;

import rursu.providers.DataProvider;
import rursu.providers.DataProviderManager;
import rursu.providers.ImageProvider;
import android.app.Application;

public class MovieApplication extends Application {

	private DataProviderManager dataProviderManager = new DataProviderManager();
	private Settings settings;
	
	public static final String MOVIES_URL_STRING = "http://api.themoviedb.org/2.1/Movie.browse/en-US/xml/ed2f89aa774281fcada8f17b73c8fa05?min_votes=8&order=desc&page=1&";
	public static final String MOVIE_DETAILS_URL_STRING = "http://api.themoviedb.org/2.1/Movie.getInfo/en/xml/ed2f89aa774281fcada8f17b73c8fa05/";
	public static final String MOVIE_SEARCH_URL_STRING = "http://api.themoviedb.org/2.1/Movie.search/en/xml/ed2f89aa774281fcada8f17b73c8fa05/";
	
	public ImageProvider getImageProviderManager() {
		return dataProviderManager;
	}
	
	public DataProvider getDataProviderManager() {
		return dataProviderManager;
	}
	
	public void setProgressListener(ProgressListener progressListener) {
		dataProviderManager.setProgressListener(progressListener);
	}
	
	@Override
	public void onCreate() {
		super.onCreate();
	}

	public Settings getSettings() {
		return settings;
	}

	public void setSettings(Settings settings) {
		this.settings = settings;
	}
	
	
}
